using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class DRP_PKT_DynaReportMap : EntityTypeConfiguration<DRP_PKT_DynaReport>
    {
        public DRP_PKT_DynaReportMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.ReportCode)
                .HasMaxLength(50);

            this.Property(t => t.Char1)
                .HasMaxLength(200);

            this.Property(t => t.Char2)
                .HasMaxLength(200);

            this.Property(t => t.Char3)
                .HasMaxLength(200);

            this.Property(t => t.Char4)
                .HasMaxLength(200);

            this.Property(t => t.Char5)
                .HasMaxLength(200);

            this.Property(t => t.Char6)
                .HasMaxLength(200);

            this.Property(t => t.Char7)
                .HasMaxLength(200);

            this.Property(t => t.Char8)
                .HasMaxLength(200);

            this.Property(t => t.Char9)
                .HasMaxLength(200);

            this.Property(t => t.Char10)
                .HasMaxLength(200);

            this.Property(t => t.Char11)
                .HasMaxLength(200);

            this.Property(t => t.Char12)
                .HasMaxLength(200);

            this.Property(t => t.Char13)
                .HasMaxLength(200);

            this.Property(t => t.Char14)
                .HasMaxLength(200);

            this.Property(t => t.Char15)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("DRP_PKT_DynaReport");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.SPID).HasColumnName("SPID");
            this.Property(t => t.ReportCode).HasColumnName("ReportCode");
            this.Property(t => t.Char1).HasColumnName("Char1");
            this.Property(t => t.Char2).HasColumnName("Char2");
            this.Property(t => t.Char3).HasColumnName("Char3");
            this.Property(t => t.Char4).HasColumnName("Char4");
            this.Property(t => t.Char5).HasColumnName("Char5");
            this.Property(t => t.Char6).HasColumnName("Char6");
            this.Property(t => t.Char7).HasColumnName("Char7");
            this.Property(t => t.Char8).HasColumnName("Char8");
            this.Property(t => t.Char9).HasColumnName("Char9");
            this.Property(t => t.Char10).HasColumnName("Char10");
            this.Property(t => t.Char11).HasColumnName("Char11");
            this.Property(t => t.Char12).HasColumnName("Char12");
            this.Property(t => t.Char13).HasColumnName("Char13");
            this.Property(t => t.Char14).HasColumnName("Char14");
            this.Property(t => t.Char15).HasColumnName("Char15");
            this.Property(t => t.Date1).HasColumnName("Date1");
            this.Property(t => t.Date2).HasColumnName("Date2");
            this.Property(t => t.Money1).HasColumnName("Money1");
            this.Property(t => t.Money2).HasColumnName("Money2");
            this.Property(t => t.Int1).HasColumnName("Int1");
            this.Property(t => t.Int2).HasColumnName("Int2");
            this.Property(t => t.Int3).HasColumnName("Int3");
        }
    }
}
